home *** CD-ROM | disk | FTP | other *** search
-
-
-
- nnnniiiicccc((((DDDD3333)))) nnnniiiicccc((((DDDD3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- _nnnn_iiii_cccc______vvvv_eeee_rrrr_tttt_eeee_xxxx______iiii_nnnn_ffff_oooo______ssss_eeee_tttt - decode NIC, label vertex
- _nnnn_iiii_cccc______vvvv_eeee_rrrr_tttt_eeee_xxxx______iiii_nnnn_ffff_oooo______gggg_eeee_tttt - get decoded NIC data from vertex
- _nnnn_iiii_cccc______vvvv_eeee_rrrr_tttt_eeee_xxxx______iiii_nnnn_ffff_oooo______mmmm_aaaa_tttt_cccc_hhhh - check for NIC data match
- _nnnn_iiii_cccc______vvvv_mmmm_cccc______aaaa_dddd_dddd - establish callback based on NIC data match
- _nnnn_iiii_cccc______vvvv_mmmm_cccc______dddd_eeee_llll - deactivate NIC data match callback
- _nnnn_iiii_cccc______aaaa_cccc_cccc_eeee_ssss_ssss______mmmm_cccc_rrrr_3333_2222 - common NIC access function
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <sys/nic.h>
-
- char *
- nic_vertex_info_set(
- nic_access_t _a_c_c_e_s_s,
- nic_data_t _d_a_t_a,
- vertex_hdl_t _v_h_d_l)
-
- char *
- nic_vertex_info_get(
- vertex_hdl_t _v_h_d_l)
-
- int
- nic_vertex_info_match(
- vertex_hdl_t _v_h_d_l,
- char *_s_t_r_i_n_g)
-
- nic_vmce_t
- nic_vmc_add(
- char *_s_t_r_i_n_g,
- nic_vmc_func *_f_u_n_c)
-
- void
- nic_vmc_del(
- nic_vmce_t _e_n_t_r_y)
-
- nic_access_f nic_access_mcr32;
-
- AAAArrrrgggguuuummmmeeeennnnttttssss
- _a_c_c_e_s_s is a NIC access function appropriate for the ASIC through which
- the NIC is going to be accessed.
-
- _d_a_t_a is an appropriate value to pass as the first parameter to the
- access function; it is commonly an address through which the NIC
- will be accessed.
-
- _e_n_t_r_y is an appropriate value returned from a previous _n_i_c__v_m_c__a_d_d()
- function call.
-
- _s_t_r_i_n_g is data to be found as a substring of the decoded NIC data. Most
- commonly, it will be a seven digit SGI board part number.
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- nnnniiiicccc((((DDDD3333)))) nnnniiiicccc((((DDDD3333))))
-
-
-
- _v_h_d_l is an appropriate handle to a vertex corresponding to the device
- to which the NIC is attached.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The first time _n_i_c__v_e_r_t_e_x__i_n_f_o__s_e_t() is called, it extracts and decodes
- the data from a NIC using the specified access function and data value,
- then annotates the specified vertex with the decoded data. The NIC
- callback list is checked, and any matching callbacks are triggered.
- Subsequent calls merely return the decoded data already on the vertex.
-
- _n_i_c__v_e_r_t_e_x__i_n_f_o__g_e_t() returns the decoded NIC data attached to the
- specified vertex, or NULL if no decode has been attempted.
-
- _n_i_c__v_e_r_t_e_x__i_n_f_o__m_a_t_c_h() retrieves the NIC data for the specified vertex,
- and checks to see if the specified string is a substring in the decoded
- NIC data, returning nonzero if there is a match.
-
- _n_i_c__v_m_c__a_d_d() is used to establish a NIC data based callback; after this
- call is made, each NIC data decode will also check for a match with the
- specified string, and if there is a match, the callback function will be
- triggered with the appropriate vertex passed to it.
-
- _n_i_c__v_m_c__d_e_l() is used to tear down a NIC data based callback.
-
- _n_i_c__a_c_c_e_s_s__m_c_r_3_2() is a common NIC access function used by several ASICs
- in current systems.
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- _n_i_c__v_e_r_t_e_x__i_n_f_o__g_e_t() returns NULL if there is no decoded NIC data
- attached to the specified vertex.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-